import request from "@/manager/base/RequestManager";
import AfterSaleOrderLineQueryRequest from "@/api/afterSale/order/request/AfterSaleOrderLineQueryRequest";
import AfterSaleItemMaterialRequest from "@/api/afterSale/order/request/AfterSaleItemMaterialRequest";
import AfterSaleLineSendMoreRequest from "@/api/afterSale/order/request/AfterSaleLineSendMoreRequest";

/**
 *  更新工单物料信息
 *
 * @author 徐寿春
 * 2023/4/5 13:00
 */
export function updAfterSaleOrderLineById(params?: any) {
    return request.post('after/sale/line/updAfterSaleOrderLineById', params)
}

/**
 *  更新工单物料信息
 *
 * @author 徐寿春
 * 2023/4/5 13:00
 */
export function updAfterSaleOrderLineOneById(params?: AfterSaleItemMaterialRequest) {
    return request.post('after/sale/line/updAfterSaleOrderLineOneById', params)
}



/**
 * 物料质检完成
 *
 * @author 徐寿春
 * 2023/4/7 10:03
 */
export function checkSaleOrderLineOver(params?: any) {
    return request.post('after/sale/line/checkSaleOrderLineOver', params)
}

/**
 * 根据69码查数据
 *
 * @author 徐寿春
 * 2023/4/7 10:03
 */
export function getAutocompleteByBatch() {
    return request.post('after/sale/line/getAutocompleteByBatch')
}


/**
 *  物料新增多寄
 *
 * @author 徐寿春
 * 2023/5/5 10:32
 */
export function addAfterSaleOrderLineBySendMore(params:AfterSaleLineSendMoreRequest) {
    return request.post('after/sale/line/addAfterSaleOrderLineBySendMore',params)
}


/**
 * 根据Sn查询售后工单物料信息
 *
 * @author 徐寿春
 * 2023/4/18 13:59
 */
export function getAfterSaleOrderReturnLineBySN(params: AfterSaleOrderLineQueryRequest) {
    return request.post('after/sale/line/getAfterSaleOrderReturnLineBySN', params)
}